*{
    padding: 0;
    margin: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
a{
    text-decoration: none;
}

/*外层样式*/
.slide-wraper{
    width: 900px;
    height: 400px;
    margin: auto;
    margin-top: 50px;
    overflow: hidden;
    position: relative;
}

/*幻灯片图片样式*/
.slide-wraper .slide-item,
.slide-wraper .slide-item img{
    width: 100%;
    height: 100%;
}

/*切换动画效果*/
.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/*幻灯片数字样式*/
.slide-wraper .slide-item .item-index{
    position: absolute;
    top: 8px;
    left: 8px;
    color: #fff;
    font-size: 20px;
}

/*幻灯片文字样式*/
.slide-wraper .slide-item .item-text{
    position: absolute;
    bottom: 8px;
    text-align: center;
    color: #fff;
    font-size: 20px;
    width: 100%;

}

/*幻灯片左右切换按钮样式*/
.slide-wraper .switch-item{
    display: block;
    font-size: 28px;
    position: absolute;
    top: 50%;
    margin-top: -20px;
    color: #ffffff;
}

.slide-wraper .switch-item:hover{
    cursor: pointer;
    background-color: rgba(0,0,0,0.2);
}

.slide-wraper #next{
    right: 0;
}

/*幻灯片切换按钮样式*/
.slide-controls{
    width: 900px;
    height: 100px;
    margin: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.slide-controls .contrl-node{
    display: inline-block;
    width: 14px;
    height: 14px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    background-color: #eee;
    margin-right: 14px;
}

.slide-controls .contrl-node.active{
    background-color: black;
}

.slide-controls .contrl-node:hover{
    cursor: pointer;
}
